home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / downloads / nsIDownloadManager.h next >
C/C++ Source or Header  |  2006-05-08  |  18KB  |  418 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDownloadManager.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDownloadManager_h__
  6. #define __gen_nsIDownloadManager_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMWindow; /* forward declaration */
  18.  
  19. class nsIURI; /* forward declaration */
  20.  
  21. class nsILocalFile; /* forward declaration */
  22.  
  23. class nsIDownload; /* forward declaration */
  24.  
  25. class nsICancelable; /* forward declaration */
  26.  
  27. class nsIMIMEInfo; /* forward declaration */
  28.  
  29. class nsIRDFDataSource; /* forward declaration */
  30.  
  31. class nsIDownloadProgressListener; /* forward declaration */
  32.  
  33. class nsISupportsArray; /* forward declaration */
  34.  
  35.  
  36. /* starting interface:    nsIDownloadManager */
  37. #define NS_IDOWNLOADMANAGER_IID_STR "1f280341-30f4-4009-bb0d-a78f2936d1fb"
  38.  
  39. #define NS_IDOWNLOADMANAGER_IID \
  40.   {0x1f280341, 0x30f4, 0x4009, \
  41.     { 0xbb, 0x0d, 0xa7, 0x8f, 0x29, 0x36, 0xd1, 0xfb }}
  42.  
  43. class NS_NO_VTABLE nsIDownloadManager : public nsISupports {
  44.  public: 
  45.  
  46.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOWNLOADMANAGER_IID)
  47.  
  48.   enum { DOWNLOAD_NOTSTARTED = -1 };
  49.  
  50.   enum { DOWNLOAD_DOWNLOADING = 0 };
  51.  
  52.   enum { DOWNLOAD_FINISHED = 1 };
  53.  
  54.   enum { DOWNLOAD_FAILED = 2 };
  55.  
  56.   enum { DOWNLOAD_CANCELED = 3 };
  57.  
  58.   enum { DOWNLOAD_PAUSED = 4 };
  59.  
  60.   enum { DOWNLOAD_TYPE_DOWNLOAD = 0 };
  61.  
  62.   /**
  63.    * Creates an nsIDownload and adds it to be managed by the download manager.
  64.    *
  65.    * @param aSource The source URI of the transfer. Must not be null.
  66.    *
  67.    * @param aTarget The target URI of the transfer. Must not be null.
  68.    *
  69.    * @param aDisplayName The user-readable description of the transfer.
  70.    *                     Can be empty.
  71.    *
  72.    * @param aMIMEInfo The MIME info associated with the target,
  73.    *                  including MIME type and helper app when appropriate.
  74.    *                  This parameter is optional.
  75.    *
  76.    * @param startTime Time when the download started
  77.    *
  78.    * @param aTempFile The location of a temporary file; i.e. a file in which
  79.    *                  the received data will be stored, but which is not
  80.    *                  equal to the target file. (will be moved to the real
  81.    *                  target by the caller, when the download is finished)
  82.    *                  May be null.
  83.    *
  84.    * @param aCancelable An object that can be used to abort the download.
  85.    *                    Must not be null.
  86.    *
  87.    * @return The newly created download item with the passed-in properties.
  88.    */
  89.   /* nsIDownload addDownload (in short aDownloadType, in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in AString aIconURL, in nsIMIMEInfo aMIMEInfo, in PRTime aStartTime, in nsILocalFile aTempFile, in nsICancelable aCancelable); */
  90.   NS_IMETHOD AddDownload(PRInt16 aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, const nsAString & aIconURL, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsILocalFile *aTempFile, nsICancelable *aCancelable, nsIDownload **_retval) = 0;
  91.  
  92.   /**
  93.    *  Retrieves an in-progress download managed by the download manager.
  94.    *
  95.    *  @param aPersistentDescriptor The unique identifier used to describe a
  96.    *                               a download, and an attribute of nsILocalFile.
  97.    *                               On Windows and Linux, this is just the path
  98.    *                               of the target, but on Mac this is guaranteed
  99.    *                               to be unique.
  100.    *
  101.    *  @return The download with the specified persistent descriptor.
  102.    */
  103.   /* nsIDownload getDownload (in wstring aPersistentDescriptor); */
  104.   NS_IMETHOD GetDownload(const PRUnichar *aPersistentDescriptor, nsIDownload **_retval) = 0;
  105.  
  106.   /**
  107.    * Cancels the download with the specified persistent descriptor if it's
  108.    * currently in progress. This calls cancel(NS_BINDING_ABORTED) on the
  109.    * nsICancelable provided for the download.
  110.    *
  111.    * @param aPersistentDescriptor The persistent descriptor of the download to
  112.    *                              be cancelled.
  113.    */
  114.   /* void cancelDownload (in wstring aPersistentDescriptor); */
  115.   NS_IMETHOD CancelDownload(const PRUnichar *aPersistentDescriptor) = 0;
  116.  
  117.   /**
  118.    * Removes the download with the specified persistent descriptor if it's not
  119.    * currently in progress.  Whereas cancelDownload simply cancels the transfer
  120.    * but retains information about it, removeDownload removes all knowledge of it.
  121.    *
  122.    * @param aPersistentDescriptor The persistent descriptor of the download to
  123.    *                              be removed.
  124.    */
  125.   /* void removeDownload (in wstring aPersistentDescriptor); */
  126.   NS_IMETHOD RemoveDownload(const PRUnichar *aPersistentDescriptor) = 0;
  127.  
  128.   /**
  129.    * Pause the specified download.
  130.    */
  131.   /* void pauseDownload (in wstring aPersistentDescriptor); */
  132.   NS_IMETHOD PauseDownload(const PRUnichar *aPersistentDescriptor) = 0;
  133.  
  134.   /**
  135.    * Resume the specified download.
  136.    */
  137.   /* void resumeDownload (in wstring aPersistentDescriptor); */
  138.   NS_IMETHOD ResumeDownload(const PRUnichar *aPersistentDescriptor) = 0;
  139.  
  140.   /** 
  141.    * Opens the Download Manager front end.
  142.    * 
  143.    * @param aParent   The parent, or opener, of the front end (optional).
  144.    * @param aDownload A download to pass to the manager widnow. Useful if,
  145.    *                  for example, you want the window to select a certain
  146.    *                  download (optional).
  147.    */
  148.   /* void open (in nsIDOMWindow aParent, in wstring aPersistentDescriptor); */
  149.   NS_IMETHOD Open(nsIDOMWindow *aParent, const PRUnichar *aPersistentDescriptor) = 0;
  150.  
  151.   /** 
  152.    * The Download Manager's progress listener.
  153.    */
  154.   /* attribute nsIDownloadProgressListener listener; */
  155.   NS_IMETHOD GetListener(nsIDownloadProgressListener * *aListener) = 0;
  156.   NS_IMETHOD SetListener(nsIDownloadProgressListener * aListener) = 0;
  157.  
  158.   /**
  159.   * Indicate that a batch update (e.g. mass removal) is about to start.
  160.   */
  161.   /* void startBatchUpdate (); */
  162.   NS_IMETHOD StartBatchUpdate(void) = 0;
  163.  
  164.   /**
  165.   * Indicate that a batch update is ending.
  166.   */
  167.   /* void endBatchUpdate (); */
  168.   NS_IMETHOD EndBatchUpdate(void) = 0;
  169.  
  170.   /** 
  171.    * Whether or not there are downloads that can be cleaned up (removed)
  172.    * i.e. downloads that have completed, have failed or have been canceled. 
  173.    */
  174.   /* readonly attribute boolean canCleanUp; */
  175.   NS_IMETHOD GetCanCleanUp(PRBool *aCanCleanUp) = 0;
  176.  
  177.   /** 
  178.    * Removes completed, failed, and canceled downloads from the list. 
  179.    */
  180.   /* void cleanUp (); */
  181.   NS_IMETHOD CleanUp(void) = 0;
  182.  
  183.   /** 
  184.    * The number of files currently being downloaded.
  185.    */
  186.   /* readonly attribute long activeDownloadCount; */
  187.   NS_IMETHOD GetActiveDownloadCount(PRInt32 *aActiveDownloadCount) = 0;
  188.  
  189.   /**
  190.    * An enumeration of active downloads.
  191.    */
  192.   /* readonly attribute nsISupportsArray activeDownloads; */
  193.   NS_IMETHOD GetActiveDownloads(nsISupportsArray * *aActiveDownloads) = 0;
  194.  
  195.   /** 
  196.    * Update the download datasource. 
  197.    */
  198.   /* void saveState (); */
  199.   NS_IMETHOD SaveState(void) = 0;
  200.  
  201.   /** 
  202.    * Flush the download datasource to disk.
  203.    */
  204.   /* void flush (); */
  205.   NS_IMETHOD Flush(void) = 0;
  206.  
  207.   /* readonly attribute nsIRDFDataSource datasource; */
  208.   NS_IMETHOD GetDatasource(nsIRDFDataSource * *aDatasource) = 0;
  209.  
  210. };
  211.  
  212. /* Use this macro when declaring classes that implement this interface. */
  213. #define NS_DECL_NSIDOWNLOADMANAGER \
  214.   NS_IMETHOD AddDownload(PRInt16 aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, const nsAString & aIconURL, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsILocalFile *aTempFile, nsICancelable *aCancelable, nsIDownload **_retval); \
  215.   NS_IMETHOD GetDownload(const PRUnichar *aPersistentDescriptor, nsIDownload **_retval); \
  216.   NS_IMETHOD CancelDownload(const PRUnichar *aPersistentDescriptor); \
  217.   NS_IMETHOD RemoveDownload(const PRUnichar *aPersistentDescriptor); \
  218.   NS_IMETHOD PauseDownload(const PRUnichar *aPersistentDescriptor); \
  219.   NS_IMETHOD ResumeDownload(const PRUnichar *aPersistentDescriptor); \
  220.   NS_IMETHOD Open(nsIDOMWindow *aParent, const PRUnichar *aPersistentDescriptor); \
  221.   NS_IMETHOD GetListener(nsIDownloadProgressListener * *aListener); \
  222.   NS_IMETHOD SetListener(nsIDownloadProgressListener * aListener); \
  223.   NS_IMETHOD StartBatchUpdate(void); \
  224.   NS_IMETHOD EndBatchUpdate(void); \
  225.   NS_IMETHOD GetCanCleanUp(PRBool *aCanCleanUp); \
  226.   NS_IMETHOD CleanUp(void); \
  227.   NS_IMETHOD GetActiveDownloadCount(PRInt32 *aActiveDownloadCount); \
  228.   NS_IMETHOD GetActiveDownloads(nsISupportsArray * *aActiveDownloads); \
  229.   NS_IMETHOD SaveState(void); \
  230.   NS_IMETHOD Flush(void); \
  231.   NS_IMETHOD GetDatasource(nsIRDFDataSource * *aDatasource); 
  232.  
  233. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  234. #define NS_FORWARD_NSIDOWNLOADMANAGER(_to) \
  235.   NS_IMETHOD AddDownload(PRInt16 aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, const nsAString & aIconURL, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsILocalFile *aTempFile, nsICancelable *aCancelable, nsIDownload **_retval) { return _to AddDownload(aDownloadType, aSource, aTarget, aDisplayName, aIconURL, aMIMEInfo, aStartTime, aTempFile, aCancelable, _retval); } \
  236.   NS_IMETHOD GetDownload(const PRUnichar *aPersistentDescriptor, nsIDownload **_retval) { return _to GetDownload(aPersistentDescriptor, _retval); } \
  237.   NS_IMETHOD CancelDownload(const PRUnichar *aPersistentDescriptor) { return _to CancelDownload(aPersistentDescriptor); } \
  238.   NS_IMETHOD RemoveDownload(const PRUnichar *aPersistentDescriptor) { return _to RemoveDownload(aPersistentDescriptor); } \
  239.   NS_IMETHOD PauseDownload(const PRUnichar *aPersistentDescriptor) { return _to PauseDownload(aPersistentDescriptor); } \
  240.   NS_IMETHOD ResumeDownload(const PRUnichar *aPersistentDescriptor) { return _to ResumeDownload(aPersistentDescriptor); } \
  241.   NS_IMETHOD Open(nsIDOMWindow *aParent, const PRUnichar *aPersistentDescriptor) { return _to Open(aParent, aPersistentDescriptor); } \
  242.   NS_IMETHOD GetListener(nsIDownloadProgressListener * *aListener) { return _to GetListener(aListener); } \
  243.   NS_IMETHOD SetListener(nsIDownloadProgressListener * aListener) { return _to SetListener(aListener); } \
  244.   NS_IMETHOD StartBatchUpdate(void) { return _to StartBatchUpdate(); } \
  245.   NS_IMETHOD EndBatchUpdate(void) { return _to EndBatchUpdate(); } \
  246.   NS_IMETHOD GetCanCleanUp(PRBool *aCanCleanUp) { return _to GetCanCleanUp(aCanCleanUp); } \
  247.   NS_IMETHOD CleanUp(void) { return _to CleanUp(); } \
  248.   NS_IMETHOD GetActiveDownloadCount(PRInt32 *aActiveDownloadCount) { return _to GetActiveDownloadCount(aActiveDownloadCount); } \
  249.   NS_IMETHOD GetActiveDownloads(nsISupportsArray * *aActiveDownloads) { return _to GetActiveDownloads(aActiveDownloads); } \
  250.   NS_IMETHOD SaveState(void) { return _to SaveState(); } \
  251.   NS_IMETHOD Flush(void) { return _to Flush(); } \
  252.   NS_IMETHOD GetDatasource(nsIRDFDataSource * *aDatasource) { return _to GetDatasource(aDatasource); } 
  253.  
  254. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  255. #define NS_FORWARD_SAFE_NSIDOWNLOADMANAGER(_to) \
  256.   NS_IMETHOD AddDownload(PRInt16 aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, const nsAString & aIconURL, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsILocalFile *aTempFile, nsICancelable *aCancelable, nsIDownload **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDownload(aDownloadType, aSource, aTarget, aDisplayName, aIconURL, aMIMEInfo, aStartTime, aTempFile, aCancelable, _retval); } \
  257.   NS_IMETHOD GetDownload(const PRUnichar *aPersistentDescriptor, nsIDownload **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDownload(aPersistentDescriptor, _retval); } \
  258.   NS_IMETHOD CancelDownload(const PRUnichar *aPersistentDescriptor) { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelDownload(aPersistentDescriptor); } \
  259.   NS_IMETHOD RemoveDownload(const PRUnichar *aPersistentDescriptor) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDownload(aPersistentDescriptor); } \
  260.   NS_IMETHOD PauseDownload(const PRUnichar *aPersistentDescriptor) { return !_to ? NS_ERROR_NULL_POINTER : _to->PauseDownload(aPersistentDescriptor); } \
  261.   NS_IMETHOD ResumeDownload(const PRUnichar *aPersistentDescriptor) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeDownload(aPersistentDescriptor); } \
  262.   NS_IMETHOD Open(nsIDOMWindow *aParent, const PRUnichar *aPersistentDescriptor) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(aParent, aPersistentDescriptor); } \
  263.   NS_IMETHOD GetListener(nsIDownloadProgressListener * *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
  264.   NS_IMETHOD SetListener(nsIDownloadProgressListener * aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); } \
  265.   NS_IMETHOD StartBatchUpdate(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartBatchUpdate(); } \
  266.   NS_IMETHOD EndBatchUpdate(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndBatchUpdate(); } \
  267.   NS_IMETHOD GetCanCleanUp(PRBool *aCanCleanUp) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanCleanUp(aCanCleanUp); } \
  268.   NS_IMETHOD CleanUp(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CleanUp(); } \
  269.   NS_IMETHOD GetActiveDownloadCount(PRInt32 *aActiveDownloadCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveDownloadCount(aActiveDownloadCount); } \
  270.   NS_IMETHOD GetActiveDownloads(nsISupportsArray * *aActiveDownloads) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveDownloads(aActiveDownloads); } \
  271.   NS_IMETHOD SaveState(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveState(); } \
  272.   NS_IMETHOD Flush(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Flush(); } \
  273.   NS_IMETHOD GetDatasource(nsIRDFDataSource * *aDatasource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDatasource(aDatasource); } 
  274.  
  275. #if 0
  276. /* Use the code below as a template for the implementation class for this interface. */
  277.  
  278. /* Header file */
  279. class nsDownloadManager : public nsIDownloadManager
  280. {
  281. public:
  282.   NS_DECL_ISUPPORTS
  283.   NS_DECL_NSIDOWNLOADMANAGER
  284.  
  285.   nsDownloadManager();
  286.  
  287. private:
  288.   ~nsDownloadManager();
  289.  
  290. protected:
  291.   /* additional members */
  292. };
  293.  
  294. /* Implementation file */
  295. NS_IMPL_ISUPPORTS1(nsDownloadManager, nsIDownloadManager)
  296.  
  297. nsDownloadManager::nsDownloadManager()
  298. {
  299.   /* member initializers and constructor code */
  300. }
  301.  
  302. nsDownloadManager::~nsDownloadManager()
  303. {
  304.   /* destructor code */
  305. }
  306.  
  307. /* nsIDownload addDownload (in short aDownloadType, in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in AString aIconURL, in nsIMIMEInfo aMIMEInfo, in PRTime aStartTime, in nsILocalFile aTempFile, in nsICancelable aCancelable); */
  308. NS_IMETHODIMP nsDownloadManager::AddDownload(PRInt16 aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, const nsAString & aIconURL, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsILocalFile *aTempFile, nsICancelable *aCancelable, nsIDownload **_retval)
  309. {
  310.     return NS_ERROR_NOT_IMPLEMENTED;
  311. }
  312.  
  313. /* nsIDownload getDownload (in wstring aPersistentDescriptor); */
  314. NS_IMETHODIMP nsDownloadManager::GetDownload(const PRUnichar *aPersistentDescriptor, nsIDownload **_retval)
  315. {
  316.     return NS_ERROR_NOT_IMPLEMENTED;
  317. }
  318.  
  319. /* void cancelDownload (in wstring aPersistentDescriptor); */
  320. NS_IMETHODIMP nsDownloadManager::CancelDownload(const PRUnichar *aPersistentDescriptor)
  321. {
  322.     return NS_ERROR_NOT_IMPLEMENTED;
  323. }
  324.  
  325. /* void removeDownload (in wstring aPersistentDescriptor); */
  326. NS_IMETHODIMP nsDownloadManager::RemoveDownload(const PRUnichar *aPersistentDescriptor)
  327. {
  328.     return NS_ERROR_NOT_IMPLEMENTED;
  329. }
  330.  
  331. /* void pauseDownload (in wstring aPersistentDescriptor); */
  332. NS_IMETHODIMP nsDownloadManager::PauseDownload(const PRUnichar *aPersistentDescriptor)
  333. {
  334.     return NS_ERROR_NOT_IMPLEMENTED;
  335. }
  336.  
  337. /* void resumeDownload (in wstring aPersistentDescriptor); */
  338. NS_IMETHODIMP nsDownloadManager::ResumeDownload(const PRUnichar *aPersistentDescriptor)
  339. {
  340.     return NS_ERROR_NOT_IMPLEMENTED;
  341. }
  342.  
  343. /* void open (in nsIDOMWindow aParent, in wstring aPersistentDescriptor); */
  344. NS_IMETHODIMP nsDownloadManager::Open(nsIDOMWindow *aParent, const PRUnichar *aPersistentDescriptor)
  345. {
  346.     return NS_ERROR_NOT_IMPLEMENTED;
  347. }
  348.  
  349. /* attribute nsIDownloadProgressListener listener; */
  350. NS_IMETHODIMP nsDownloadManager::GetListener(nsIDownloadProgressListener * *aListener)
  351. {
  352.     return NS_ERROR_NOT_IMPLEMENTED;
  353. }
  354. NS_IMETHODIMP nsDownloadManager::SetListener(nsIDownloadProgressListener * aListener)
  355. {
  356.     return NS_ERROR_NOT_IMPLEMENTED;
  357. }
  358.  
  359. /* void startBatchUpdate (); */
  360. NS_IMETHODIMP nsDownloadManager::StartBatchUpdate()
  361. {
  362.     return NS_ERROR_NOT_IMPLEMENTED;
  363. }
  364.  
  365. /* void endBatchUpdate (); */
  366. NS_IMETHODIMP nsDownloadManager::EndBatchUpdate()
  367. {
  368.     return NS_ERROR_NOT_IMPLEMENTED;
  369. }
  370.  
  371. /* readonly attribute boolean canCleanUp; */
  372. NS_IMETHODIMP nsDownloadManager::GetCanCleanUp(PRBool *aCanCleanUp)
  373. {
  374.     return NS_ERROR_NOT_IMPLEMENTED;
  375. }
  376.  
  377. /* void cleanUp (); */
  378. NS_IMETHODIMP nsDownloadManager::CleanUp()
  379. {
  380.     return NS_ERROR_NOT_IMPLEMENTED;
  381. }
  382.  
  383. /* readonly attribute long activeDownloadCount; */
  384. NS_IMETHODIMP nsDownloadManager::GetActiveDownloadCount(PRInt32 *aActiveDownloadCount)
  385. {
  386.     return NS_ERROR_NOT_IMPLEMENTED;
  387. }
  388.  
  389. /* readonly attribute nsISupportsArray activeDownloads; */
  390. NS_IMETHODIMP nsDownloadManager::GetActiveDownloads(nsISupportsArray * *aActiveDownloads)
  391. {
  392.     return NS_ERROR_NOT_IMPLEMENTED;
  393. }
  394.  
  395. /* void saveState (); */
  396. NS_IMETHODIMP nsDownloadManager::SaveState()
  397. {
  398.     return NS_ERROR_NOT_IMPLEMENTED;
  399. }
  400.  
  401. /* void flush (); */
  402. NS_IMETHODIMP nsDownloadManager::Flush()
  403. {
  404.     return NS_ERROR_NOT_IMPLEMENTED;
  405. }
  406.  
  407. /* readonly attribute nsIRDFDataSource datasource; */
  408. NS_IMETHODIMP nsDownloadManager::GetDatasource(nsIRDFDataSource * *aDatasource)
  409. {
  410.     return NS_ERROR_NOT_IMPLEMENTED;
  411. }
  412.  
  413. /* End of implementation class template. */
  414. #endif
  415.  
  416.  
  417. #endif /* __gen_nsIDownloadManager_h__ */
  418.